﻿#ifndef _CCLIENT_MAIN_MODULE_H_
#define _CCLIENT_MAIN_MODULE_H_

#include "../basic/CModule.h"
#include "../basic/CMsg.h"
#include "CUser.h"
#include "CTotrisGame.h"
#include "MiscDefine.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef struct _cclientmain_module_ {
	CModule parent;

	//attribute
	CMap users_map;
	CUser* me;
	CModule* view;
	CTotrisGame game;
	int game_user_count;

	char piles[ITEM_WIDTH_COUNT * ITEM_HEIGHT_COUNT]; //[32][25]

	//action
} CClientMainModule;

int construct_client_main(CClientMainModule* thes, const char* module_name);

#ifdef __cplusplus
}
#endif
#endif
